package com.kukudexin.AdvanceThread.logThread;

/**
 * @author: 酷酷的鑫
 * @Date: 14:04
 * @description:
 */
public class MayiktCallableImpl implements MayiktCallable<Integer> {

    @Override
    public Integer call()  {
        try {
            System.out.println(Thread.currentThread().getName() + ",子线程在执行耗时的代码");
            Thread.sleep(3000);
        } catch (Exception e) {

        }
        // 耗时代码执行完毕之后 返回1
        return 1;
    }
}
